import static org.junit.Assert.*;

import org.junit.Test;


public class consumeFoodTest {

	@Test
	public void testConsumeFude(){
	ItemBag bag = new ItemBag();
	
	int[] foodAmount = {10,0,0,0,0,0};  //first number in array defines food amount
	bag.setQuantity(foodAmount);
	 
	assertEquals(bag.consumeFood(8), true);   //after this call bag is at 2
	
	assertEquals(bag.consumeFood(8), false);  //this call would result in qty. of -6, illegal
	

	}

}
